<?php

declare(strict_types=1);

namespace App\Service;

use Hyperf\Di\Annotation\Inject;
use App\Service\TalkRoomService;

class WebSocketService extends BaseService
{
    /**
     *@inject
     * @var TalkRoomService
     */
    private  $talkRoomService;

    public function get_room(int $room_id,$user_id,$remove_self=1)
    {
        $this->redis_pop('room_id_'.$room_id,);

        return  $this->talkRoomService->room_user($room_id);
    }

}